package sto.orz.html.form;

//TODO cache ret by object.class?
public class FormFactory {
	private static FormBuilder formBuilder = new FormBuilder();

	public static Form getForm(Object object) {
		return getForm("", object);
	}
	
	public static Form getForm(String pid, Object object) {
		return getForm(pid, object.getClass());
	}

	public static Form getForm(Class clazz) {
		return getForm("", clazz);
	}

	public static Form getForm(String pid, Class clazz) {
		return formBuilder.getForm(pid, clazz);
	}
}
